package com.jh.example;

public class DoWhileTest2Charpt36 
{
	public static void main(String[] args) 
	{
		int m = 150;
		int n = 330;
		
		do {
			System.out.printf("[ %d , %d ]\n",m,n);
			if (m>n)m-=n; 
			else if(n>m)n-=m;	
		} while (m!=n);
		System.out.println();
		System.out.printf("최대 공약수 %d : ",m);
	}
}
